﻿using Microsoft.AspNetCore.Mvc.ApplicationModels;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc.Conventions;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Reflection;

namespace Qianke.Core.Saas.WebApi.SaasExtensions
{
    [Dependency(ReplaceServices = true)]
    public class SaasConventionalRouteBuilder : ConventionalRouteBuilder, IConventionalRouteBuilder, ITransientDependency
    {
        public SaasConventionalRouteBuilder(IOptions<AbpConventionalControllerOptions> options) : base(options)
        {
        }



        public override string Build(string rootPath, string controllerName, ActionModel action, string httpMethod, ConventionalControllerSetting configuration)
        {
            return $"{controllerName}/{action.ActionName}";
        }
    }
}
